from paste.wsgiwrappers import WSGIRequest

class RequestWrapper(object):

    def __init__(self, app):
        self.application = app

    def __call__(self, environ, start_response):
        environ['wsgi.request.obj'] = WSGIRequest(environ)
        return self.application(environ, start_response)
